Logic Controller

Change the variable to see how the "IF" statement reacts.

let isMoving = false;

if (isMoving) {
  showGreen();
} else {
  showRed();
}